<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5></h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input type="hidden" name="ticketId" id="ticketId"
								th:value="${ticketId}">

							<!--							<div class="form-group">-->
							<!--								<label class="col-sm-3 control-label">选择会员:</label>-->
							<!--								<div class="col-sm-8">-->
							<!--									<input id="mids" name="mids" class="form-control" type="hidden">-->
							<!--									<input id="nickname" name="nickname" class="form-control"-->
							<!--										type="text" placeholder="点击选择会员" readonly-->
							<!--										onclick="selectMember()">-->
							<!--								</div>-->
							<!--							</div>-->

							<div class="form-group">
								<label class="col-sm-3 control-label">选择会员:</label>
								<div class="col-sm-8">
									<input id="mids" name="mids" class="form-control" type="hidden">
									<input id="nickname" name="nickname" class="form-control"
										   onclick="selectMembers()" placeholder="点击选择会员" readonly
										   type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">选择订单商品:</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text"
										placeholder="点击选择订单" readonly onclick="selectorder()">
								</div>
							</div>

							<input type="hidden" name="centreId" id="centreId"
								th:value="${centreId}" th:if="${flag} == '1'">
							<div class="form-group" th:if="${flag} == '0'">
								<label class="col-sm-3 control-label">选择站点:</label>
								<div class="col-sm-8">
									<select data-placeholder="商户"
										class="form-control chosen-select" name="centreId"
										id="centreId" tabindex="2">
										<option value="">选择商户</option>
										<option th:each="item: ${centreList}" th:text="${item.name}"
											th:value="${item.centreId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">发放数量:</label>
								<div class="col-sm-8">
									<input id="num" name="num" class="form-control" type="number"
										min="0" value="1">
								</div>
							</div>

							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" class="btn btn-primary">
										<i class="fa fa-check"></i>提交
									</button>
									<div class="btn btn-danger" onclick="allsave()">
										<i class="fa fa-ok"></i> 全员发放
									</div>
									<div class="btn btn-danger" onclick="closeDow()">
										<i class="fa fa-remove"></i> 关闭
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/promotion/ticket/send.js">
		
	</script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>

</html>
